package com.scorpio.system.dto;

import com.scorpio.common.utils.treenode.TreeNode;
import com.scorpio.common.utils.treenode.TreeNodeType;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class AreaInfoDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @TreeNode(TreeNodeType.ID)
    private Long id;

    @TreeNode(TreeNodeType.ParentId)
    private Long parentId;

    @TreeNode(TreeNodeType.Children)
    private List<AreaInfoDTO> children;

    private Integer areaLevel;

    private String areaCode;

    private String areaName;

    private String pinyin;

    private String letter;
}
